package com.hjb.service.impl.cms;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.cms.CmsLinkService;
import com.hjb.service.domain.cmslink.CmsLink;
import com.hjb.service.domain.cmslink.CmsLinkExample;
import com.hjb.service.mapper.CmsLinkMapper;

@Service
public class CmsLinkServiceImpl implements CmsLinkService {

	private Logger log = LoggerFactory.getLogger(CmsLinkServiceImpl.class);
	
	@Autowired
	private CmsLinkMapper cmsLinkMapper;

	@Override
	public List<CmsLink> selectByExample(CmsLinkExample example) {
		return cmsLinkMapper.selectByExample(example);
	}

	@Override
	public int insertCmsLink(CmsLink cmsLink) {
		return cmsLinkMapper.insertSelective(cmsLink);
	}

	@Override
	public void updateCmsLink(CmsLink cmsLink) {
		cmsLinkMapper.updateByPrimaryKeySelective(cmsLink);
	}
	
}
